/********************************************************************
 * PROJECT: CSAIR ROST PROJECT.
 * SUPPLIER: FOREVER OPEN SOURCE SOFTWARE INC.
 ********************************************************************
 * FILE: GanttGridViewerChart.java
 * (C) Copyright Foliage Team 2013, All Rights Reserved.
 ********************************************************************/
package org.foliage.rcp.ui.viewer;

public class GanttGridViewerChart {

	// ----------------------------------------------- 

	private GanttGridViewer viewer;

	private IGanttGridLabelProvider labelProvider;

	// ----------------------------------------------- 

	public GanttGridViewerChart(GanttGridViewer viewer, int style) {
		this(viewer, style, -1);
	}

	public GanttGridViewerChart(GanttGridViewer viewer, int style, int index) {
		this.viewer = viewer;
		init();
	}

	// ----------------------------------------------- 

	void init() {
		viewer.newChart(this);
	}

	// ----------------------------------------------- 

	public IGanttGridLabelProvider getLabelProvider() {
		return labelProvider;
	}

	public void setLabelProvider(IGanttGridLabelProvider labelProvider) {
		this.labelProvider = labelProvider;
	}

}
